package com.zerui.manager.accessrecord.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author wh
 * @create_time 2023-08-23 15:28
 */
@Data
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AccessRecordExport implements Serializable, IExcelModel, IExcelDataModel {

	@Excel(name = "通行人员id", width = 20.0)
	private String personnelId;

	@Excel(name = "人员姓名", width = 20.0)
	private String personnelName;

	@Excel(name = "人员类型", width = 20.0)
	private String personType;

	@Excel(name = "公司id", width = 20.0)
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private Long orgId;

	@Excel(name = "公司名称", width = 20.0)
	private String orgName;

	@Excel(name = "设备id", width = 20.0)
	private String deviceId;

	@Excel(name = "设备名称", width = 20.0)
	@ApiModelProperty("设备名称")
	private String deviceName;

	@Excel(name = "设备编码", width = 20.0)
	private String deviceCode;

	@Excel(name = "设备位置", width = 20.0)
	private String position;

	@Excel(name = "通行状态", width = 20.0)
	private String passStatus;

	@Excel(name = "进出方向", width = 20.0)
	private String access;

	@Excel(name = "通行方式", width = 20.0)
	@ApiModelProperty("通行方式 1：人脸  2：密码 3：刷卡 4：身份证 5：指纹 6：人证合一 7：人卡合一 8：人证对比 9：二维码 10：远程开门")
	private String mode;

	@Excel(name = "通行时间", width = 20.0)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createTime;

	@Override
	public int getRowNum() {
		return 0;
	}

	@Override
	public void setRowNum(int i) {

	}

	@Override
	public String getErrorMsg() {
		return null;
	}

	@Override
	public void setErrorMsg(String s) {

	}
}
